#!/system/bin/sh
mount -o remount,rw /system 2>/dev/null
for m in /dev/block/mtdblock*
do
mount -o remount,rw $m /system 2>/dev/null
done

echo ""
echo "BMc's PowerBoost Script V1.8"
echo "      Big thanks to dvader for the .jar signing!!"
echo ""
echo " Backing up services.jar" 
cp /system/framework/services.jar /sdcard/unthrottle/services.bak 
echo " Done"
echo ""
echo ""
echo " replacing services.jar with modified version" 
cp /sdcard/unthrottle/services.jar /system/framework/services.jar 
echo " Done"
echo ""
echo ""
echo " Data is now unthrottled"
echo ""
echo ""
echo " Backing up ORIGINAL build.prop..."
cp /system/build.prop /sdcard/unthrottle/build.prop.old
echo " Done"
echo ""
echo ""
cat >> /system/build.prop <<EOF
ro.ril.gprsclass=12
ro.ril.hsdpa.category=14
ro.ril.hsupa.category=7
ro.ril.hsxpa=2
ro.ril.disable.power.collapse=0
EOF
echo "" 
echo " Now its time for performance......"
cp sdcard/unthrottle/etc/init.d/99BMc /system/etc/init.d
cp sdcard/unthrottle/etc/passwd /system/etc/
mkdir /data/cron
cp sdcard/unthrottle/data/cron/root /data/cron
echo " cron enabled.....sdcard zoom....zoom..."

echo " done....now sysctl tweaks"
cp /system/etc/sysctl.conf /sdcard/unthrottle/sysctl.fnoc 
cp /sdcard/unthrottle/etc/sysctl.conf /system/etc/
echo " Performance tweaks running"
echo ""
mount -o remount,ro /system 2>/dev/null
for m in /dev/block/mtdblock*
do
mount -o remount,ro $m /system 2>/dev/null
done
echo " Modifications Complete.....More to come"
echo ""
echo ""
echo " ==Your 1ST reboot may take SEVERAL minutes=="
echo ""
echo ""
echo " =====REBOOT NOW====="
echo " =====REBOOT NOW====="
echo " =====REBOOT NOW====="
echo ""

